package com.hb.C_Lambda表达式和集合.高阶函数

fun main() {
    val numbers = listOf(-1, 0, 2)
    val isZero: (Int) -> Boolean = { it == 0 }
    println(numbers.any(isZero) == true)
    println(numbers.all(isZero) == false)
    println(numbers.count(isZero) == 1)
    println(numbers.find { it > 0 } == 2)
}